package com.fenghongzhang.day005.list;

import android.view.View;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fenghongzhang.day005.R;
import com.fenghongzhang.day005.TestVideoUrl;
import com.fenghongzhang.day005.Video;
import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

import java.util.List;

public class MyAdapter2 extends BaseQuickAdapter<Video, BaseViewHolder> {
    int i = 0;
    public MyAdapter2(int layoutResId, @Nullable List<Video> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Video item) {
        StandardGSYVideoPlayer standardGSYVideoPlayer = helper.getView(R.id.gsy_player);
        standardGSYVideoPlayer.setUp(TestVideoUrl.videoUrls[i],true,"哈哈");
        i++;
    }
}
